package conf

import "gopkg.in/ini.v1"

type Conf struct{}

func (c Conf) LoadConfig() (AccessKey, SecretKey, Bucket, QiniuServer string) {
	file, _ := ini.Load("conf/qiniu.ini")
	AccessKey = file.Section("qiniu").Key("AccessKey").String()
	SecretKey = file.Section("qiniu").Key("SecretKey").String()
	Bucket = file.Section("qiniu").Key("Bucket").String()
	QiniuServer = file.Section("qiniu").Key("QiniuServer").String()
	return
}
